﻿using System;
using System.Linq;
using System.Xml.Linq;

namespace CodeCounsel.SharePoint.RibbonDesigner.Model
{
    [XName("Templates", Namespaces.CommandUIText)]
    public class Templates
        : DomainElement
    {
        public RibbonTemplates RibbonTemplates
        {
            get { return Children.OfType<RibbonTemplates>().FirstOrDefault(); }
        }

        public Templates(XElement dataModel, DomainModelSource source)
            : base(dataModel, source)
        {
        }

        public Templates()
        {
        }
    }
}